package com.tepth.maintenancesystem.bean;

import android.util.Log;

import com.tepth.maintenancesystem.untils.AESUtils;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by LHQ on 2016/12/8.
 */

public class VersionUpdate {

    private String appVersion;
    private String appUrl;
    private String appRemark;
    private String appSize;

    public VersionUpdate(){

    }

    public VersionUpdate(JSONObject object)throws Exception{
        this.appVersion=object.getString("AppVersion");
        this.appUrl=object.getString("AppUrl");
        this.appRemark=object.getString("AppRemark");
        this.appSize=object.getString("AppSize");
    }

    public JSONObject toJSON() throws Exception {
        JSONObject json = new JSONObject();
        try {
            json.put("AppVersion", appVersion);
            json.put("AppUrl", appUrl);
            json.put("AppRemark", appRemark);
            json.put("AppSize", appSize);
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return json;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getAppUrl() {
        return appUrl;
    }

    public void setAppUrl(String appUrl) {
        this.appUrl = appUrl;
    }

    public String getAppRemark() {
        return appRemark;
    }

    public void setAppRemark(String appRemark) {
        this.appRemark = appRemark;
    }

    public String getAppSize() {
        return appSize;
    }

    public void setAppSize(String appSize) {
        this.appSize = appSize;
    }
}
